#include<stdio.h>
#include<omp.h>
int main(int argc,char* argv[]){
	int k = 100;
	#pragma omp parallel for firstprivate(k),lastprivate(k)
	for(int i = 0; i < 4; i++){
		k+=i;
		printf("k = %d\n",k);
	} 
	printf("last k = %d",k);
}


/*
Answer:
k = 103
k = 102
k = 101
k = 100
last k = 103
*/
